<?php

/**
 * @author Dang Quoc Viet
 * @copyright 2009
 */

class PagesController extends AppController{
	var $name = 'Pages';
	var $helpers = array('Html','Form','Session');
	var $uses = array();
	
	function display(){
		$user = $this->Auth->user();//->read('User');
		if($user){
			echo 'co';
		}else{
			echo 'khong';
		}
		if($user['User']['ROLE'] == 'admin'){
			$this->set('aa',$user['User']['USERNAME']);
		}else
			$this->set('aa','bb');
	}
	
	function home(){
		
	}
}

?>